Integrand size = 23, antiderivative size = 161 \[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=-\frac {16 a^2 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {4 a^2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {16 a^2 \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {4 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a^2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3873, 3853, 3856, 2720, 4131, 2719} \[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=\frac {2 a^2 \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{5 d}+\frac {4 a^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {16 a^2 \sin (c+d x) \sqrt {\sec (c+d x)}}{5 d}+\frac {4 a^2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}-\frac {16 a^2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3853
Rule 3856
Rule 3873
Rule 4131
Rubi steps \begin{align*} \text {integral}& = \left (2 a^2\right ) \int \sec ^{\frac {5}{2}}(c+d x) \, dx+\int \sec ^{\frac {3}{2}}(c+d x) \left (a^2+a^2 \sec ^2(c+d x)\right ) \, dx \\ & = \frac {4 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a^2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {1}{3} \left (2 a^2\right ) \int \sqrt {\sec (c+d x)} \, dx+\frac {1}{5} \left (8 a^2\right ) \int \sec ^{\frac {3}{2}}(c+d x) \, dx \\ & = \frac {16 a^2 \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {4 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a^2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}-\frac {1}{5} \left (8 a^2\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{3} \left (2 a^2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx \\ & = \frac {4 a^2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {16 a^2 \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {4 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a^2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}-\frac {1}{5} \left (8 a^2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx \\ & = -\frac {16 a^2 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {4 a^2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {16 a^2 \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {4 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a^2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 2.06 (sec) , antiderivative size = 269, normalized size of antiderivative = 1.67 \[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=\frac {a^2 \sec ^4\left (\frac {1}{2} (c+d x)\right ) (1+\sec (c+d x))^2 \left (-\frac {2 i \sqrt {2} e^{-i (c+d x)} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \cos ^2(c+d x) \left (12 \left (1+e^{2 i (c+d x)}\right )+12 \left (-1+e^{2 i c}\right ) \sqrt {1+e^{2 i (c+d x)}} \operatorname {Hypergeometric2F1}\left (-\frac {1}{4},\frac {1}{2},\frac {3}{4},-e^{2 i (c+d x)}\right )+5 e^{i (c+d x)} \left (-1+e^{2 i c}\right ) \sqrt {1+e^{2 i (c+d x)}} \operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{2},\frac {5}{4},-e^{2 i (c+d x)}\right )\right )}{-1+e^{2 i c}}+\frac {24 \cos (d x) \csc (c)+(10+3 \sec (c+d x)) \tan (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)}\right )}{30 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(385\) vs. \(2(189)=378\).
Time = 26.28 (sec) , antiderivative size = 386, normalized size of antiderivative = 2.40
method | result | size |
default | \(-\frac {a^{2} \sqrt {-\left (-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (-\frac {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{3 \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-\frac {1}{2}\right )^{2}}+\frac {68 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{15 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}-\frac {32 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )}{5 \sqrt {-\left (-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}-\frac {16 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \left (\operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-\operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{5 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{10 \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-\frac {1}{2}\right )^{3}}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(386\) |
parts | \(\text {Expression too large to display}\) | \(761\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 202, normalized size of antiderivative = 1.25 \[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=-\frac {2 \, {\left (5 i \, \sqrt {2} a^{2} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 5 i \, \sqrt {2} a^{2} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 12 i \, \sqrt {2} a^{2} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 12 i \, \sqrt {2} a^{2} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - \frac {{\left (24 \, a^{2} \cos \left (d x + c\right )^{2} + 10 \, a^{2} \cos \left (d x + c\right ) + 3 \, a^{2}\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}\right )}}{15 \, d \cos \left (d x + c\right )^{2}} \]
[In]
[Out]
Timed out. \[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=\int { {\left (a \sec \left (d x + c\right ) + a\right )}^{2} \sec \left (d x + c\right )^{\frac {3}{2}} \,d x } \]
[In]
[Out]
\[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=\int { {\left (a \sec \left (d x + c\right ) + a\right )}^{2} \sec \left (d x + c\right )^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2 \, dx=\int {\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^2\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2} \,d x \]
[In]
[Out]